package assignments;

public class Byte {
	public static void main(String[] args) {
		
		byte b = 27;
		System.out.println("byte b is " + b);
		
		byte a1 = 3;
		byte a2 = 8;
		byte a3 = (byte) (a1 + a2);
		System.out.println("byte a3 = " + a3);
		
		int b1 = 100;
		long b2 = b1;
		System.out.println(b2);
		
		float c1 = 100.001f;
		int c2 = (int) c1;
		System.out.println(c2);
		
		double d = 100L;
		System.out.println(d);
		
		int x = (int)3957.229;
		System.out.println(x);
		
		long l1 = 56L;
		byte bb1 = (byte)l1;
		System.out.println(bb1);
		
		long l2 = 130l;
		byte bb2 = (byte) l2;
		System.out.println(bb2);
		
		//exercise 3-1
		float f = 234.56F;
		short s = (short)f;
		System.out.println(s);
		
		byte a = (byte) 128;
		System.out.println(a);
		
		byte e = 3;
		e += 7;
		System.out.println(e);
		
	}
}
